<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class IntegralPrize extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('integral_prize',function(Blueprint $table){
            $table->id();
            $table->string('code')->default('')->comment('奖品编码');
            $table->string('name')->default('')->comment('奖品名');
            $table->integer('price')->default(0)->comment('价格');
            $table->integer('daily_convert_amount')->default(0)->comment('每日兑换次数');
            $table->integer('month_convert_amount')->default(0)->comment('每月兑换次数');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
